package com.yj.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.yj.model.Course;
import com.yj.service.CourseService;

@Service("courseService")
public class CourseServiceImpl extends BaseServiceImpl<Course> implements CourseService {


	@Override
	public List<Course> getCoursesByType(String type) {
		return courseDao.getCourseByType(type);
	}

	@Override
	public Course getById(Integer cid) {
		return courseDao.get(cid);
	}

}
